import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Zhou Wenfei
 * date 2020/10/29 11:56
 */
public class Test {
	public static void main(String[] args) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:spring.xml");
		TestBean bean = ctx.getBean(TestBean.class);
		bean.print();
	}
}
